NewTrackEditState
You can create an edit state by calling theNewTrackEditState
function. This function creates an edit state that contains all the information describing a track's content, including the identity of the media data associated with the track and all the track's
edit lists.
- Note
- You must dispose of a movie's track edit states before disposing of the track or of the movie that contains the track. Use the
DisposeTrackEditState
function, which is described on page 2-254, to dispose of an edit state.
pascal TrackEditState NewTrackEditState (Track theTrack);
theTrack
- Specifies the track for this operation. Your application obtains this track identifier from such Movie Toolbox functions as
NewMovieTrack
andGetMovieTrack
(described on page 2-136 and page 2-188, respectively).DESCRIPTION
TheNewTrackEditState
function returns a track edit state identifier. You can use this identifier with other Movie Toolbox edit state functions, such asUseTrackEditState
(described in the next section). If this function could not create the edit state, it sets this returned identifier tonil
.ERROR CODES
Memory Manager errors
invalidTrack -2009 This track is corrupted or invalid